package com.bckj.fastboot.iot.data.mongo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

/**
 * MessageRecord
 *
 * @author wfc
 **/
@Data
@Document("message_record")
public class MessageRecord {
    /**
     * 主键
     */
    @Id
    private Long id;
    /**
     * 消息ID
     */
    private String msgId;
    /**
     * 订阅主题
     */
    private String topic;
    /**
     * 消息内容
     */
    private String payload;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
